package com.github.iot.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 网络设置模式
 *
 * @Author: 梁声洪
 * @Date: 2019/12/12 21:49
 * @Version: v1.0.0
 */
@Entity
public class NetPattern {

    /**
     * 主键ID
     */
    @Id(autoincrement = true)
    private Long id;

    /**
     * 模式
     * 1 模式1   2 模式2    3  模式3
     */
    @NotNull
    private Integer pattern;

    /**
     * wifi名称
     */
    @NotNull
    private String wifiName;

    /**
     * wifi 密码
     */
    @NotNull
    private String wifiPassword;

    /**
     * 服务端IP地址
     */
    @NotNull
    private String serverIp;

    /**
     * 服务端端口
     */
    @NotNull
    private Integer serverPort;

    /**
     * 服务端子网掩码
     */
    @NotNull
    private String serverMask;

    @Generated(hash = 727134786)
    public NetPattern(Long id, @NotNull Integer pattern, @NotNull String wifiName,
            @NotNull String wifiPassword, @NotNull String serverIp,
            @NotNull Integer serverPort, @NotNull String serverMask) {
        this.id = id;
        this.pattern = pattern;
        this.wifiName = wifiName;
        this.wifiPassword = wifiPassword;
        this.serverIp = serverIp;
        this.serverPort = serverPort;
        this.serverMask = serverMask;
    }

    @Generated(hash = 687267640)
    public NetPattern() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPattern() {
        return this.pattern;
    }

    public void setPattern(Integer pattern) {
        this.pattern = pattern;
    }

    public String getWifiName() {
        return this.wifiName;
    }

    public void setWifiName(String wifiName) {
        this.wifiName = wifiName;
    }

    public String getWifiPassword() {
        return this.wifiPassword;
    }

    public void setWifiPassword(String wifiPassword) {
        this.wifiPassword = wifiPassword;
    }

    public String getServerIp() {
        return this.serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public Integer getServerPort() {
        return this.serverPort;
    }

    public void setServerPort(Integer serverPort) {
        this.serverPort = serverPort;
    }

    public String getServerMask() {
        return this.serverMask;
    }

    public void setServerMask(String serverMask) {
        this.serverMask = serverMask;
    }


}